package com.springaop.demo;

import org.springframework.stereotype.Component;

@Component
public class Landlord {

    public void service() {
        // 仅仅只是实现了核心的业务功能
        System.out.println("签合同");
        //中介和租客说得天花乱坠
       // int i = 8/0;//故意抛异常
        System.out.println("收房租");
    }
}
